package org.freedoit.server.om;

// Generated Oct 11, 2012 3:54:05 PM by Hibernate Tools 3.4.0.CR1

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "task_type")
public class TaskType implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1094663982439874328L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "task_type_id", unique = true, nullable = false)
	private Long taskTypeId;

	@Column(name = "task_type_name", nullable = false)
	private String taskTypeName;

	@Column(name = "task_type_descrition")
	private String taskTypeDescrition;

	@Column(name = "last_modify_time")
	private Timestamp lastModifyTime;

	@Column(name = "user_id")
	private Long userId;

	@Column(name = "status", nullable = false)
	private Integer status;

	public TaskType() {
	}

	public TaskType(String taskTypeName, Integer status) {
		this.taskTypeName = taskTypeName;
		this.status = status;
	}

	public TaskType(String taskTypeName, String taskTypeDescrition,
			Integer status, Timestamp lastModifyTime) {
		this.taskTypeName = taskTypeName;
		this.taskTypeDescrition = taskTypeDescrition;
		this.status = status;
		this.lastModifyTime = lastModifyTime;
	}

	public Long getTaskTypeId() {
		return this.taskTypeId;
	}

	public void setTaskTypeId(Long taskTypeId) {
		this.taskTypeId = taskTypeId;
	}

	public String getTaskTypeName() {
		return this.taskTypeName;
	}

	public void setTaskTypeName(String taskTypeName) {
		this.taskTypeName = taskTypeName;
	}

	public String getTaskTypeDescrition() {
		return this.taskTypeDescrition;
	}

	public void setTaskTypeDescrition(String taskTypeDescrition) {
		this.taskTypeDescrition = taskTypeDescrition;
	}

	public Timestamp getLastModifyTime() {
		return this.lastModifyTime;
	}

	public void setLastModifyTime(Timestamp lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}

	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
}
